package com.jzy.chatglmsdk18753goldn;

import com.jzy.chatglmsdk18753goldn.model.ImageCompletionRequest;
import com.jzy.chatglmsdk18753goldn.model.ImageCompletionResponse;
import io.reactivex.Single;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @description OpenAi 接口，用于扩展通用类服务
 */
public interface IOpenAiApi {

    String GLM_v4 = "api/paas/v4/chat/completions";

    String GLM_cogview3 = "api/paas/v4/images/generations";

    String Qwen_v1 = "compatible-mode/v1/chat/completions";

    @POST(GLM_cogview3)
    Single<ImageCompletionResponse> genImages(@Body ImageCompletionRequest imageCompletionRequest);

}
